function activePage(){
	var url=document.URL;
	urlArray = new Array();
    urlArray = url.split('/');
    currentPage = urlArray[urlArray.length - 1];
    switch (currentPage) {
		case "inserisci.php":
			document.getElementById("InserisciPratica").style.backgroundColor="#ed7a44";
			document.getElementById("InserisciPratica").style.color="white";
			break;
		case "ricerca.php":
			document.getElementById("RicercaPratica").style.backgroundColor="#ed7a44";
			document.getElementById("RicercaPratica").style.color="white";
			break;
		
	}
}

function logout(){
	window.location.href="logout.php";
}